package com.meizi.codegenerate.tool.service;

import com.meizi.codegenerate.tool.page.PageData;

import java.util.List;
import java.util.Map;

/**
 * @author GG Bond
 * @date 2023/3/14 - 16:56 - 星期二
 * @project lambda
 * @package com.meizi.codegenerate.tool.service
 * @description CRUD基础服务接口
 */
public interface CrudService<T, D> extends BaseService<T>{

        PageData<D> page(Map<String, Object> params);

        List<D> list(Map<String, Object> params);

        D get(Long id);

        void save(D dto);

        void update(D dto);

        void delete(Long[] ids);
}
